This is a "quick and dirty" application which displays a PICT in a window and which can handle the 4 required Apple events, as documented in Inside Macintosh. It needs THINK C 5 or later.
Note that it's sparsely commented. If you have any questions, send me email at AOL: "AFC RClark", AppleLink: RDCLARK, internet: RDCLARK@applelink.apple.com.
Take a look at the files "Interaction.c", "AppleEventHandlers.c", and "File.c". That's where the interesting stuff is.
Basic legal nonsense:
-------------------
You may distribute the source code and application as long as you keep this notice with it. You may exerpt any part of the code in your own products without any further permissions from the author.